package org.example.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;


@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
// 实现了序列化之后，redis从数据库拿数据不报错了
public class MyUser implements Serializable {





    @Serial
    private static final long serialVersionUID = 1L;
    private Integer id;
    private String name;
    private String password;
    private Integer age;

}
